package com.pdsu.xpf.graduation01.dao;

import com.pdsu.xpf.graduation01.domain.CommodityType;
import com.pdsu.xpf.graduation01.domain.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ICommodityTypeDao {

    @Select("select * from type")
    List<Type> getTypeList();

    @Select("select * from commodity_type where tid = #{tid}")
    List<CommodityType> getCommodityListByTID(int tid);


}
